using Godot;
public class SteamBlock_Block : BlockMaterial
{
    public SteamBlock_Block() : base("steam_block")
    {
        SetStateMax(6);
        SetCollide(false);
        SetTickEvent(Tick);
    }
    public void Tick(UpdataTickEvent e)
    {
        if(e.block.State<5)
        {
            e.block.SetState(e.block.State+1);
        }else
        {
            e.block.SetBlock(Materials.Air);
        }
    }
}